const mongoose = require('./connection')

const menuSchema = new mongoose.Schema({
    name: String,
    price: Number,
    imgpath: String,
    specifications: String,
    kind: String,
    enable: {
        type: Boolean,
        default: true
    },
    catname: String
})

const menuModel = mongoose.model('menu', menuSchema, 'menu')

module.exports = menuModel